package com.boot.controller;

import com.boot.openfeign.ProviderClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/openfeign")
public class OpenFeignController {
    @Autowired
    ProviderClient providerClient;

    @GetMapping("/consumerOpenFeign")
    public String consumerOpenFeign(){
        return providerClient.provider();
    }

}
